package server;

import java.io.IOException;
import java.net.ServerSocket;

public class IMServer {

	public void server(){
		try {
			
			ServerSocket server=new ServerSocket(8888);
			while(true){
				IMThread iThread = new IMThread(server.accept());
				iThread.start();
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public static void main(String[] args) {
		new IMServer().server();
	}
}
